﻿import request from '/@/utils/request';
enum Api {
  AddBoardRouteInfo = '/api/boardRouteInfo/add',
  DeleteBoardRouteInfo = '/api/boardRouteInfo/delete',
  UpdateBoardRouteInfo = '/api/boardRouteInfo/update',
  PageBoardRouteInfo = '/api/boardRouteInfo/page',
  DetailBoardRouteInfo = '/api/boardRouteInfo/detail',
}

// 增加路由信息
export const addBoardRouteInfo = (params?: any) =>
	request({
		url: Api.AddBoardRouteInfo,
		method: 'post',
		data: params,
	});

// 删除路由信息
export const deleteBoardRouteInfo = (params?: any) => 
	request({
			url: Api.DeleteBoardRouteInfo,
			method: 'post',
			data: params,
		});

// 编辑路由信息
export const updateBoardRouteInfo = (params?: any) => 
	request({
			url: Api.UpdateBoardRouteInfo,
			method: 'post',
			data: params,
		});

// 分页查询路由信息
export const pageBoardRouteInfo = (params?: any) => 
	request({
			url: Api.PageBoardRouteInfo,
			method: 'post',
			data: params,
		});

// 详情路由信息
export const detailBoardRouteInfo = (id: any) => 
	request({
			url: Api.DetailBoardRouteInfo,
			method: 'get',
			data: { id },
		});


